<?php

namespace base\admin\controller\system;

use app\admin\service\annotation\ControllerAnnotation;
use app\admin\service\annotation\NodeAnotation;
use app\admin\service\NodeService;
use app\admin\service\TriggerService;
use app\common\controller\AdminController;
use think\App;

/**
 * @ControllerAnnotation(title="系统节点管理")
 * Class Node
 */
class NodeBase extends AdminController
{
    use \app\admin\traits\Curd;

    public function __construct(App $app)
    {
        parent::__construct($app);
    }

    /**
     * @NodeAnotation(title="列表")
     */
    public function index()
    {
        $module_list = (new NodeService())->getNodeTree();
        $this->assign('module_list', $module_list);
        return $this->fetch();
    }
}
